﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><?php echo $page_title ?></title>
    <link href="<?php echo SITE;?>/views/template/css/style.css" rel="stylesheet" media="screen" charset="utf-8"/>        
    <script src="<?php echo SITE;?>/views/template/js/script.js"></script>
    <script src="<?php echo SITE;?>/views/template/main/js/jquery.js"></script>
    <script src="<?php echo SITE;?>/views/template/main/js/function.js"></script>
    <script src="<?php echo SITE;?>/views/template/main/js/fancybox.js"></script>
      
</head>
<body>
    <div id="wrapper">
        <div id="header">
            <div id="topbanner"></div>
            <?php
                //echo '<ul id="topnav" style="display: block;">';
                function cratemenu($parent){
                    $db = new DB();
                    $excute = $db->run("SELECT * FROM `menu` WHERE `menu_parent`=$parent ORDER BY `menu_order` ASC");
                    foreach ($excute as $value){                        
                        if (!$value['menu_parent']==0){
                            echo '<li><a href="'.SITE.$value['menu_link'].'">'.$value['menu_name'].'</a>';
                            echo '<ul class="children">';
                            cratemenu($value['menu_id']);
                            echo '</ul>';
                        }else echo '<li><a class="link" href="'.SITE.$value['menu_link'].'"><span class="text">'.$value['menu_name'].'</span></a>';
                        
                    }
                };
                //cratemenu(0);
                //echo '</ul>';
            ?>
            
            <ul id="topnav" style="display: block;">
                <li><a class="link" href="<?echo SITE?>/"><span class="text">TRANG CHỦ</span></a></li>
                <li><a class="link" href="<?echo SITE?>/gioithieu"><span class="text">GIỚI THIỆU</span></a></li>
                <li><a class="link" href="<?echo SITE?>/"><span class="text">TIN TỨC GIÁO DỤC</span></a></li>
                <li><a class="link" href="<?echo SITE?>/"><span class="text">LIÊN HỆ</span></a></li>
                <li><a class="link parent" href="<?echo SITE?>/"><span class="text">TEST</span></a>
                    <ul class="children">
                        <li><a class="" href="<?echo SITE?>/">asdasfsgadbvc</a></li>
                        <li><a class="" href="<?echo SITE?>/">rdvcbvntjvnvbb</a></li>
                        <li><a class="" href="<?echo SITE?>/">dfsdgvc</a></li>
                        <li><a class="" href="<?echo SITE?>/">nnfhgjfj</a></li>
                    </ul>
                </li>
                <li><a class="link last" href="<?echo SITE?>/admin"><span class="text">ADMIN</span></a></li>
            </ul>
        </div>
        <table id="container">
            <tr>
                


                        
            